package com.yonghui.sandbox;

import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * @description: 消费者启动类
 * @author: zhangtong
 * @create: 2021-03-10 15:05
 **/
@EnableAsync//开启异步调用
@EnableAutoConfiguration
//@EnableDubbo(scanBasePackages = "com.yonghui.sandbox.controller")
@ComponentScan(value = {"com.yonghui.sandbox"})
public class SandboxConsumerApp {

    public static void main(String[] args) {
        SpringApplication.run(SandboxConsumerApp.class, args);
    }
}
